package com.example.demo.impl;

import com.example.demo.bean.Result;
import com.example.demo.dao.MessageMapper;
import com.example.demo.exception.SPIPException;
import com.example.demo.intf.MessageInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 88377761
 *
 */
@RestController
public class MessageImpl implements MessageInterface {

	@Autowired
	MessageMapper messageMapper;
	@Override
	public Result messageList(String userId) throws SPIPException {
		Result result = new Result();
		result.setData(messageMapper.messageList(userId));
		return result;
	}
}
